<script>
  var counter=10;
  var interval_id=setInterval("countdown()",1000);
  function countdown()
  {
    status=counter--;
    if(counter<0)
    {
      clearInterval(interval_id);
      status=" ";
    }
  }
</script>
